package com.inctech.filter;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.inctech.model.Statistic;

public class MyListener implements ServletContextListener{

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		ServletContext context = sce.getServletContext();
		Map<String, Integer> ipMap = new LinkedHashMap<String, Integer>();
		List<Statistic> ipList = new ArrayList<Statistic>();
		context.setAttribute("ipMap", ipMap);
		context.setAttribute("ipList", ipList);
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		// TODO Auto-generated method stub
		
	}

}
